package org.hibernate.dialect;

import org.hibernate.type.StandardBasicTypes;

import java.sql.Types;

public class VastbaseOraDialect extends PostgreSQLDialect {

    public VastbaseOraDialect() {
        super();
        this.registerHibernateType(Types.BIGINT, StandardBasicTypes.BIG_DECIMAL.getName()); // int8
        this.registerHibernateType(Types.INTEGER, StandardBasicTypes.BIG_DECIMAL.getName());// int4
        this.registerHibernateType(Types.SMALLINT, StandardBasicTypes.BIG_DECIMAL.getName());// int2
        this.registerHibernateType(Types.TINYINT, StandardBasicTypes.BIG_DECIMAL.getName());// int1
        this.registerHibernateType(Types.BIT, StandardBasicTypes.BIG_DECIMAL.getName());

    }

}
